/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * This Source Code Form is "Incompatible With Secondary Licenses", as
 * defined by the Mozilla Public License, v. 2.0.
 */

:root {
  --content-padding-x: 20px;
  --content-padding-y: 20px;
}

html, body {
  overflow: hidden;
  position: fixed;
  margin: 0;
  top: 0;
  left: 0;
}

body {
  background: var(--default-background);
  color: var(--default-color);
  font-size: 20px;
  display: block;
  height: var(--window-height);
  width: var(--window-width);
  box-sizing: border-box;
  font-family: sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  font: inherit;
  outline: none;
}

.page {
  display: none;
  overflow: hidden;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.active-page {
  display: block;
}

.header-line {
  background: var(--header-background);
  height: 49px;
  font-size: 20px;
  border-bottom: 1px solid var(--border-color);
  line-height: 49px;
  -webkit-user-select: none;
  user-select: none;
}

.header-line button {
  margin: 0 -10px;
  color: var(--active-color);
  height: 50px;
  vertical-align: top;
}

.header-mid:empty {
  display: none;
}

.header-line .button-wrap {
  padding: 10px;
  line-height: 30px;
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.footer-line {
  position: absolute;
  bottom: 0;
  background: var(--header-background);
  color: var(--active-color);
  height: 60px;
  width: 100%;
  line-height: 60px;
  -webkit-user-select: none;
  user-select: none;
}

.icon-line {
  width: 100%;
  height: 60px;
  text-align: center;
  display: flex;
}

.icon-line-item {
  flex: 1 1 0;
}

.icon-line-item button {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 60px;
}

.header-left,
.header-mid,
.header-right {
  position: absolute;
  top: 0;
  height: 49px;
  z-index: 1;
}

.header-left {
  left: 10px;
}
.header-mid {
  left: 10px;
  right: 10px;
  z-index: 0;
  text-align: center;
  font-weight: bold;
}
.header-right {
  right: 10px;
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.list-item {
  position: relative;
  border: 0 solid var(--border-color);
  border-width: 1px 0;
  margin-bottom: -1px;
  overflow: hidden;
}

.list-item:last-child {
  margin-bottom: 0;
}

.list-item-empty {
  display: none;
  color: var(--list-comment-color);
  text-align: center;
  white-space: pre-wrap;
  padding: 10px;
  font-size: 16px;
  border: 0 none;
  height: auto;
}

.list-item-empty:only-child {
  display: block;
}

.list-item-remove-ani.list-item-remove-ani.list-item-remove-ani {
  overflow: hidden;
  transition: height ease 0.2s;
}

.list-item-container {
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
}

button.list-item-container:active {
  background: var(--list-active-background);
}
button.list-item-container.hover {
  outline: none;
  background: var(--list-active-background);
}

.list-item-selected-icon.list-item-selected-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  display: none;
  height: 20px;
  width: 20px;
  line-height: 20px;
  text-align: center;
}

.list-item-selected .list-item-selected-icon {
  display: block;
}

.list-item-content-wrap {
  padding: 0 15px;
  outline: none;
  position: relative;
  z-index: 1;
}

.item-list-selectable .list-item-content-wrap {
  padding: 0 15px 0 50px;
}

.list-item-remove {
  position: absolute;
  left: 100%;
  width: 120px;
  top: 0;
  bottom: 0;
  background: var(--remove-background);
  color: var(--remove-color);
  text-align: center;
  padding-right: 20px;
}

.list-item-has-remove:not(.list-item-slide-remove) {
  transition: left ease-out 0.1s;
}

.list-item-slide-remove::before {
  content: " ";
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
}

.list-item-remove button {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  bottom: 0;
}

.list-item-remove .icon {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.list-item.list-item-slide-remove,
.list-item.list-item-show-remove {
  overflow: visible;
}

.noscroll .scroll {
  overflow: hidden;
}

.scroll {
  scrollbar-gutter: stable;
}

.button-wrap {
  width: 100%;
  height: 100%;
  outline: none;
}

[tabindex="-1"] {
  outline: none;
}

